<?php
// 品牌列表
$oBrand = new Brand();
$brand_list = $oBrand->get_list('*', $_GET, array('rank' => 'DESC', 'id' => 'DESC'), $__page, $__pagesize = 16);
foreach($brand_list['list'] as $key => $brand){
	if($__f_sysvars['url_rewrite'] == 'html' || $__f_sysvars['url_rewrite'] == 'rewrite'){
		if(empty($brand['mark'])){
			$brand['href'] = PUB_DIR.'brand/v/'.$brand['id'].'.html';
		}else{
			$brand['href'] = PUB_DIR.'brand/v/'.$brand['mark'].'.html';
		}
	}else{
		$brand['href'] = WEB_DIR."index.php?mdl=brand&do=view&mark={$brand['mark']}";
	}
	$brand_list['list'][$key] = $brand;
}
$vars['brand_list'] = $brand_list['list'];
$vars['pagelist'] = $brand_list['pagelist'];
?>